package tech.aistar.service;

import org.apache.ibatis.annotations.Param;
import tech.aistar.entity.AppointmentTime;

import java.util.Date;
import java.util.List;

public interface IAppointmentTimeService {
    List<AppointmentTime> selectAll();



    void insert(AppointmentTime appointmentTime);


    void  updateByPrimaryKey(AppointmentTime appointmentTime);

    void deleteByPrimaryKey(Integer id);

    AppointmentTime findById(Integer integer);

    AppointmentTime findTimeById(Integer integer);


    List<AppointmentTime> selectByTenantId(Integer tenantId);

    int deleteById(Integer id);

    List<AppointmentTime> selectAgentByAppointmentDate(Date appointmentDate, Integer agentId);
    List<AppointmentTime> findByhouseId(Integer house_id,  String appointment_state);

    AppointmentTime selectByAppointmentDate(Date appointmentDate, String timeQuantum, Integer agentId);

    AppointmentTime selectByAppointmentDates(Date appointmentDate, String timeQuantum, Integer tenantId);

    AppointmentTime selectById(Integer id);

    int updateById(Date appointmentDate, String timeQuantum, Integer id);

    List<AppointmentTime> selectByAgentId(Integer agentId);

    int  updateStateById(Integer id);
    int  updateStatefById(Integer id);

    int  updateStateBy(AppointmentTime appointmentTime);

    List<AppointmentTime> selectBy(AppointmentTime appointmentTime);

}
